/**
 * Project: cmbank-application
 * 
 * File Created at 2011-11-4
 * $Id$
 * 
 * Copyright 2011 6677bank.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * 6677bank Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with 6677bank.com.
 */
package com.bank6677.sync.csm.domain;

import java.io.Serializable;
import java.util.Date;


/**
 * 分类管理
 * 
 * @author guobin
 * @version ClassiFication.java 2011-11-4 上午10:36:50
 */
public class Classification implements Serializable {

    private static final long serialVersionUID = -954198238117950150L;

    private Integer           categoryId;                             //分类管理的类型编号

    private Integer           categoryParentId;                       //父类型ID

    private String            categoryName;                           //类型名字

    private String            active;                                 //是否激活

    private Integer           creator;                                //创建者

    private Date              createDt;                               //创建时间

    private Date              updateDt;                               //更新时间

    private String            categoryType;                           //类别， 1弃单，2预约 ,3投诉，4咨询，5知识库

    private Integer           sort;                                   //排序

    public Classification() {
    }

    public Classification(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * @return the categoryId
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * @param categoryId the categoryId to set
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * @return the categoryParentId
     */
    public Integer getCategoryParentId() {
        return categoryParentId;
    }

    /**
     * @param categoryParentId the categoryParentId to set
     */
    public void setCategoryParentId(Integer categoryParentId) {
        this.categoryParentId = categoryParentId;
    }

    /**
     * @return the categoryName
     */
    public String getCategoryName() {
        return categoryName;
    }

    /**
     * @param categoryName the categoryName to set
     */
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    /**
     * @return the active
     */
    public String getActive() {
        return active;
    }

    /**
     * @param active the active to set
     */
    public void setActive(String active) {
        this.active = active;
    }

    /**
     * @return the creator
     */
    public Integer getCreator() {
        return creator;
    }

    /**
     * @param creator the creator to set
     */
    public void setCreator(Integer creator) {
        this.creator = creator;
    }

    /**
     * @return the createDt
     */
    public Date getCreateDt() {
        return createDt;
    }

    /**
     * @param createDt the createDt to set
     */
    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    /**
     * @return the updateDt
     */
    public Date getUpdateDt() {
        return updateDt;
    }

    /**
     * @param updateDt the updateDt to set
     */
    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    /**
     * @return the category_type
     */
    public String getCategoryType() {
        return categoryType;
    }

    /**
     * @param category_type the category_type to set
     */
    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    /**
     * @return the sort
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * @param sort the sort to set
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((active == null) ? 0 : active.hashCode());
        result = prime * result + ((categoryId == null) ? 0 : categoryId.hashCode());
        result = prime * result + ((categoryName == null) ? 0 : categoryName.hashCode());
        result = prime * result + ((categoryParentId == null) ? 0 : categoryParentId.hashCode());
        result = prime * result + ((categoryType == null) ? 0 : categoryType.hashCode());
        result = prime * result + ((createDt == null) ? 0 : createDt.hashCode());
        result = prime * result + ((creator == null) ? 0 : creator.hashCode());
        result = prime * result + ((sort == null) ? 0 : sort.hashCode());
        result = prime * result + ((updateDt == null) ? 0 : updateDt.hashCode());
        return result;
    }

    /*
     * (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Classification other = (Classification) obj;
        if (active == null) {
            if (other.active != null)
                return false;
        } else if (!active.equals(other.active))
            return false;
        if (categoryId == null) {
            if (other.categoryId != null)
                return false;
        } else if (!categoryId.equals(other.categoryId))
            return false;
        if (categoryName == null) {
            if (other.categoryName != null)
                return false;
        } else if (!categoryName.equals(other.categoryName))
            return false;
        if (categoryParentId == null) {
            if (other.categoryParentId != null)
                return false;
        } else if (!categoryParentId.equals(other.categoryParentId))
            return false;
        if (categoryType == null) {
            if (other.categoryType != null)
                return false;
        } else if (!categoryType.equals(other.categoryType))
            return false;
        if (createDt == null) {
            if (other.createDt != null)
                return false;
        } else if (!createDt.equals(other.createDt))
            return false;
        if (creator == null) {
            if (other.creator != null)
                return false;
        } else if (!creator.equals(other.creator))
            return false;
        if (sort == null) {
            if (other.sort != null)
                return false;
        } else if (!sort.equals(other.sort))
            return false;
        if (updateDt == null) {
            if (other.updateDt != null)
                return false;
        } else if (!updateDt.equals(other.updateDt))
            return false;
        return true;
    }

}
